import axios from '@/utils/axios';
import uri from "../utils/uri";

class Config {

    static async getConfig() {
        return axios.get(uri`/config`)
    }

    static async saveConfig(config) {
        axios.put(uri`/config`, null, {
            params: {config: config}
        })
    }
}

export default Config;